<div class="well" ng-controller="authCtrl">
    <div class="alert alert-info" ng-hide="authenticationError">
        Enter you username and password and click Log In to authentication
    </div>
    <div class="alert alert-danger" ng-show="authenticationError">
        Authentication Failed. {{authenticationError}}. Try again
    </div>
    <form name="authForm" novalidate>
        <div class="form-group">
            <label>Username</label>
            <input name="username" class="form-control" ng-model="username" required>
        </div>
        <div class="form-group">
            <label>Password</label>
            <input type="password" name="password" class="form-control" ng-model="password" required>
        </div>
        <div class="text-center">
            <button ng-click="authenticate(username,password)" ng-disabled="authForm.$invalid"
                    class="btn btn-primary">Log In</button>
        </div>
    </form>
</div>